<?php

/**
 * 
 */
App::uses('AppModel', 'Model');

class UserType extends AppModel {
    
    public $useTable = 'user_type';
    public $name = 'UserType';

    //A UserGroup has many Users.
    public $hasMany = array(
        'Users' => array(
            'className' => 'Users',
            'foreignKey' => 'type',
            'conditions' => array('valid' => 1)
        )
    );
}